package com.cheng.example.excel.easypoi.exceltotable.chap01;

import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;

import java.io.File;
import java.util.List;

/**
 * excel转为创建表语句工具类
 */
public class CreateUtil {

    public static void main(String[] args) {

        ImportParams params = new ImportParams();

        params.setHeadRows(1);

        List<ColEntity> list = ExcelImportUtil.importExcel(
                new File("C:\\Users\\cheng\\Desktop\\新建文件夹\\要创建的类.xlsx"),
                ColEntity.class, params);

        System.out.println(list.size());





    }


}
